package com.llf.Service;

import com.llf.Mapper.DepartmentMapper;
import com.llf.Pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public ArrayList<Department> getall() {
        return departmentMapper.getall();
    }

    @Override
    public Department getById(Integer id) {
        return departmentMapper.getById(id);
    }
}
